package com.imooc.distributedemo.resume;

import java.util.BitSet;
import java.util.Scanner;
import java.util.stream.Stream;

public class MySolution {
    /*public static void main(String[] args) {
        BitSet bitSet = new BitSet();
        int num = 10000;
        bitSet.set(1,num);
        for (int i = 1; i <= num; i++) {
            
        }
    }*/

    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        // 注意 hasNext 和 hasNextLine 的区别
        while (in.hasNextInt()) { // 注意 while 处理多个 case
            int a = in.nextInt();
            int lineCount = 0;
            for(int i = 0;i < a; i++){
                int b = in.nextInt();
                lineCount += b;
            }
            System.out.println(lineCount);
        }
        /*String s = Stream.iterate(1,i -> i+1)
                .filter(num -> num %2==0)
                .limit(3)
                .map(String::valueOf)
                .reduce((a,b)->a+b)
                .orElse("0");
        System.out.println(s);*/
    }

//    public void main(String[] args){
//        System.out.println("ddd");
//    }
}
